package test;

public class Teacher {

	private String name;
	private int age;
	private String gender;
	private int yearsOfExp;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public int getYearsOfExp() {
		return yearsOfExp;
	}
	public void setYearsOfExp(int yearsOfExp) {
		this.yearsOfExp = yearsOfExp;
	}
	
	
	public Teacher() {
	// TODO Auto-generated constructor stub
}
	public Teacher(String name, int age, String gender, int yearsOfExp) {
		super();
		setName(name);
		setAge(age);
		setGender(gender);
		setYearsOfExp(yearsOfExp);
	}	
	
	public void speak() {
		System.out.printf("I'm %s, I'm %d yeas old, %s, I have %d years of expercience in teaching\n ",name,age,gender,yearsOfExp);
	}
	
	public void teach() { 
	
	}
	
	public static void main(String[] args) {
		Net net = new Net("microsoft", 20, "male", 10);
		net.teach();
		net.speak();
		
		Java java = new Java("oracle", 17, "male", 7);
		java.teach();
		java.speak();
		
		Teacher[] teacher = {net,java};
		for(Teacher i:teacher) {
			i.speak();
			i.teach();
		}
	}
}
